const state = {
    userName:'ly',
    editImg:[],
    initial:'',
    editInfo:{},
    loadingStatus:true,
    goodsList:JSON.parse(sessionStorage.getItem('goosList')) || [],
    token:'',
    orderNotice:{}
};
const mutations = {
    changeName(state,string){
        state.userName = string
    },
    changeEditImg(state,value){
        state.editImg = value
    },
    changeInitial(state,value){
        state.initial = value
    },
    changeEditInfo(state,value){
        state.editInfo = value
    },
    changeLoading(state){
        state.loadingStatus = false
    },
    getAllGoods(state,arr){
        state.goodsList = arr
    },
    changeToken(state,value){
        state.token = value
    },
    changeNotice(state,obj){
        state.orderNotice = obj
    }
};
export default {
    state,
    mutations,
}
